#include "ProcessBar.h"

#define LEN 100

int main()
{
    for (int i = 0; i <= LEN; i++)      //模拟进度的加载
    {
        ProcessBar(LEN, (double)i / LEN).BarShow();
        if (i == 50 || i == 30 || i == 99)      //模拟某一进度加载缓慢
        {
            for (int k = 0; k < i; k++)
            {
                ProcessBar(LEN, (double)i / LEN).BarShow();
                usleep(125000);
            }
        }
        usleep(115000);
    }
    printf("\n");
    return 0;
}
